(function(window){

	if(!window.console) window.console = {log:function(p){}, info:function(){}, warn:function(){}};
		
	var Point = new function(){

		Point.prototype = new Object();
		Point.constructor = Point;

		Point.prototype.x = 0;
		Point.prototype.y = 0;

		function Point(pX, pY){ 
			this.x = pX;
			this.y = pY;
		}
		Point.distance = function(p1, p2){
			var vert = Math.abs(p1.x-p2.x);
			var hori = Math.abs(p1.y-p2.y);
			var dist = Math.sqrt((vert*vert)+(hori*hori));
			return dist;
		}
		Point.prototype.toString = function(){
			return "(x:"+this.x+", y:"+this.y+")";
		}
		return Point;
	}
	if(!window.Point) window.Point = Point;
}(window));